package com.hdoit.apollo.logical.shop.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.persistence.Entity;

import com.hdoit.apollo.logical.billing.model.Billing;
import com.hdoit.apollo.logical.purchase.model.Purchase;
import com.tennetcn.data.message.ModelBase;
/**
 * @author      tancongzhu
 * @email       
 * @createtime  2018年05月04日 15:03:47
 * @comment
 */
@Entity
@Table(name="shop_payment")
public class Payment extends ModelBase{
    /**
     *Id
     */
    @Id
    @Column(name="paymentId")
    private String paymentId;

    /**
     *金额
     */
    @Column(name="amount")
    private Double amount;
    
  
    @Transient
    private Double payMoney;

    /**
     *顾客id
     */
    @Column(name="customerId")
    private String customerId;
    
    //供应商id
    @Column(name="supplierId")
    private String supplierId;

    //采购付款id
    @Column(name="purchaseId")
    private String purchaseId;
    
    /**
     *付款类型，方式
     */
    @Column(name="type")
    private String type;
    
    /**
     *付款状态（付款，退款）
     */
    @Column(name="paymentState")
    private String paymentState;
    

    
    /*订单Id*/
    @Column(name="billingId")
    private String billingId;
    
    /*付款对象*/
    @Column(name="payObject")
    private String payObject;
    
    //订单类型
    @Column(name="billingType")
    private String billingType;

    /**
     *门店id
     */
    @Column(name="shopId")
    private String shopId;

    /**
     *创建时间
     */
    @Column(name="createDate")
    private Date createDate;

    /**
     *创建人id
     */
    @Column(name="createUserId")
    private String createUserId;

    /**
     *创建人名称
     */
    @Column(name="createUserName")
    private String createUserName;

    /**
     *修改时间
     */
    @Column(name="modifyDate")
    private Date modifyDate;

    /**
     *修改人id
     */
    @Column(name="modifyUserId")
    private String modifyUserId;

    /**
     *修改人名称
     */
    @Column(name="modifyUserName")
    private String modifyUserName;

    /**
     *删除标记
     */
    @Column(name="deleteMark")
    private Integer deleteMark;

    /**
     *备注
     */
    @Column(name="comment")
    private String comment;
    
    @Transient
    private Customer customer;
    
    @Transient
    private Purchase purchase;
    
    
    @Transient
    private Billing billing;
	
	public String getBillingType() {
		return billingType;
	}
	public void setBillingType(String billingType) {
		this.billingType = billingType;
	}
	public Billing getBilling() {
		return billing;
	}
	public void setBilling(Billing billing) {
		this.billing = billing;
	}
	public String getBillingId() {
		return billingId;
	}
	public void setBillingId(String billingId) {
		this.billingId = billingId;
	}
	public String getPayObject() {
		return payObject;
	}
	public void setPayObject(String payObject) {
		this.payObject = payObject;
	}
	public Customer getCustomer() {
		return customer;
	}
	public void setCustomer(Customer customer) {
		this.customer = customer;
	}
	public String getPaymentId(){
        return this.paymentId;
    }
    public void setPaymentId(String paymentId){
         this.paymentId=paymentId;
    }

    public Double getAmount(){
        return this.amount;
    }
    public void setAmount(Double amount){
         this.amount=amount;
    }

    public String getCustomerId(){
        return this.customerId;
    }
    public void setCustomerId(String customerId){
         this.customerId=customerId;
    }

    public String getType(){
        return this.type;
    }
    public void setType(String type){
         this.type=type;
    }

    public String getShopId(){
        return this.shopId;
    }
    public void setShopId(String shopId){
         this.shopId=shopId;
    }

    public Date getCreateDate(){
        return this.createDate;
    }
    public void setCreateDate(Date createDate){
         this.createDate=createDate;
    }

    public String getCreateUserId(){
        return this.createUserId;
    }
    public void setCreateUserId(String createUserId){
         this.createUserId=createUserId;
    }

    public String getCreateUserName(){
        return this.createUserName;
    }
    public void setCreateUserName(String createUserName){
         this.createUserName=createUserName;
    }

    public Date getModifyDate(){
        return this.modifyDate;
    }
    public void setModifyDate(Date modifyDate){
         this.modifyDate=modifyDate;
    }

    public String getModifyUserId(){
        return this.modifyUserId;
    }
    public void setModifyUserId(String modifyUserId){
         this.modifyUserId=modifyUserId;
    }

    public String getModifyUserName(){
        return this.modifyUserName;
    }
    public void setModifyUserName(String modifyUserName){
         this.modifyUserName=modifyUserName;
    }

    public Integer getDeleteMark(){
        return this.deleteMark;
    }
    public void setDeleteMark(Integer deleteMark){
         this.deleteMark=deleteMark;
    }

    public String getComment(){
        return this.comment;
    }
    public void setComment(String comment){
         this.comment=comment;
    }
	public String getPaymentState() {
		return paymentState;
	}
	public void setPaymentState(String paymentState) {
		this.paymentState = paymentState;
	}
	public String getPurchaseId() {
		return purchaseId;
	}
	public void setPurchaseId(String purchaseId) {
		this.purchaseId = purchaseId;
	}
	public Purchase getPurchase() {
		return purchase;
	}
	public void setPurchase(Purchase purchase) {
		this.purchase = purchase;
	}

	public Double getPayMoney() {
		return payMoney;
	}
	public void setPayMoney(Double payMoney) {
		this.payMoney = payMoney;
	}
	public String getSupplierId() {
		return supplierId;
	}
	public void setSupplierId(String supplierId) {
		this.supplierId = supplierId;
	}

    
}